Integrand size = 19, antiderivative size = 40 \[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=-\frac {\operatorname {Hypergeometric2F1}\left (1,n,1+n,\frac {1}{2} (1+\sec (c+d x))\right ) (a+a \sec (c+d x))^n}{2 d n} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3958, 70} \[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=-\frac {(a \sec (c+d x)+a)^n \operatorname {Hypergeometric2F1}\left (1,n,n+1,\frac {1}{2} (\sec (c+d x)+1)\right )}{2 d n} \]
[In]
[Out]
Rule 70
Rule 3958
Rubi steps \begin{align*} \text {integral}& = -\frac {a^2 \text {Subst}\left (\int \frac {(a-a x)^{-1+n}}{-a-a x} \, dx,x,-\sec (c+d x)\right )}{d} \\ & = -\frac {\operatorname {Hypergeometric2F1}\left (1,n,1+n,\frac {1}{2} (1+\sec (c+d x))\right ) (a+a \sec (c+d x))^n}{2 d n} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(92\) vs. \(2(40)=80\).
Time = 0.51 (sec) , antiderivative size = 92, normalized size of antiderivative = 2.30 \[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\frac {2^{-1+n} \operatorname {Hypergeometric2F1}\left (1,1-n,2-n,\cos (c+d x) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right ) \left (\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)\right )^{-1+n} (1+\sec (c+d x))^{-n} (a (1+\sec (c+d x)))^n}{d (-1+n)} \]
[In]
[Out]
\[\int \csc \left (d x +c \right ) \left (a +a \sec \left (d x +c \right )\right )^{n}d x\]
[In]
[Out]
\[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\int { {\left (a \sec \left (d x + c\right ) + a\right )}^{n} \csc \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{n} \csc {\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\int { {\left (a \sec \left (d x + c\right ) + a\right )}^{n} \csc \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\int { {\left (a \sec \left (d x + c\right ) + a\right )}^{n} \csc \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \csc (c+d x) (a+a \sec (c+d x))^n \, dx=\int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^n}{\sin \left (c+d\,x\right )} \,d x \]
[In]
[Out]